package com.example.xunwuproject.repository;

import com.example.xunwuproject.entity.SupportAddress;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * @author ：Anitaxiaofeng
 * @description：
 * @create 2019-03-11
 **/
public interface SupportAddressRepository extends CrudRepository<SupportAddress, Long> {
    List<SupportAddress> findAllByLevel(String level);
    SupportAddress findByEnNameAndLevel(String enName, String level);
    SupportAddress findByEnNameAndBelongTo(String enName, String belongTo);
    List<SupportAddress> findAllByLevelAndBelongTo(String level, String belongTo);
}




